#include <iostream>
using namespace std;
double power_N(double base,unsigned int expo)
{
    double result;
    if(expo == 0)
        return 1;
    else if(expo == 1)
        return base;
    else
    {
        result = power_N(base,expo>>1);//除2变成右移一位
        result *= result;
        if(expo&0x01 == 1)//判断expo是不是奇数
            return result * base;
        return result;
    }

}
int main() {
    int base = 2;
    int n;
    cin>>n;
    cout<<power_N(base,n);
    return 0;
}